﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using DataBaseManager;
using Utilities.Common;

namespace BLGPS
{
    public class TipoVehiculo
    {
        [IsId]
        public decimal Id { get; set; }
        public string  Descripcion { get; set; }
        public string  Icono { get; set; }
        
        [NotSave]
        public bool Activo { get; set; }

        public void Guardar()
        {
            ParameterManager parameters=new ParameterManager() { new Parameter("activo",Activo?"S":"N")};

            BaseDatos.DB.Save(this, parameters);   
        }

        public override string ToString()
        {
            return Descripcion;
        }
    }
}
